package service;

import java.util.List;

import dao.PetDao;
import entity.Pet;

public class PetService {

	PetDao petDao = new PetDao();

	public List<Pet> selectAll(String petBreed) {
		return petDao.selectAll(petBreed);
	}

	public int selectPetByPetName(String petName,int petId,boolean f) {
		return petDao.selectPetByPetName(petName, petId, f);
	}

	public int addPet(Pet pet) {
		return petDao.addPet(pet);
	}
	

	public int updatePet(Pet pet) {
		return petDao.updatePet(pet);
	}

	public Pet getPetByPetId(int petId) {
		return petDao.getPetByPetId(petId);
	}
}
